package com.disdr.bean;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class ToClass2 {

    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("src\\main\\java\\com\\disdr\\bean\\test.txt");
        BufferedReader br = new BufferedReader(fileReader);
        String line = br.readLine();
        for(;line!=null;line = br.readLine()){
            String[] colus = line.split("\t");
            System.out.println("@ExcelProperty(name = \""+colus[0]+"\")");
            System.out.println("private "+colus[1]+";");

        }
    }


    public static String toType(String coluType){
        if(coluType.indexOf("bigint")>=0){
            return "Long ";
        }else if(coluType.indexOf("int")>=0){
            return "Integer ";
        }else if(coluType.indexOf("date")>=0){
            return "Date ";
        }else if(coluType.indexOf("varchar")>=0){
            return "String ";
        }else if(coluType.indexOf("decimal")>=0){
            return "BigDecimal ";
        }else{
            return "Object ";
        }
    }


}
